﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs"
    MasterPageFile="~/Site.master" Inherits="CivilRegistry.ChangePassword" %>

<asp:Content ID="maincontent" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="pnlChangePassword" HorizontalAlign="Center" runat="server">
        <div class="form-content" style="border: 10px solid olive; margin-left: 125px; margin-top: 100px;
            padding-top: 20px; height: 145px">
            <center>
                <asp:Label ID="lblStatus" runat="server" BackColor="Yellow" ForeColor="DarkBlue"
                    Font-Bold="true"></asp:Label>
            </center>
            <div class="form-fields clearfix">
                <div class="fl txtrgt divsize1">
                    <asp:Label ID="lblCurrentPassword" runat="server" Text="Current Password:"></asp:Label>
                </div>
                <div class="fr txtlft divsize2">
                    <asp:TextBox ID="txtCurrentPassword" runat="server" TextMode="Password" MaxLength="20"
                        ToolTip="Please Enter your valid password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCurrentPassword"
                        CssClass="redText" ErrorMessage="Please enter the current password"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="form-fields clearfix">
                <div class="fl txtrgt divsize1">
                    <asp:Label ID="lblNewPassword" runat="server" Text="New Password:"></asp:Label>
                </div>
                <div class="fr txtlft divsize2">
                    <asp:TextBox ID="txtNewPassword" runat="server" TextMode="Password" MaxLength="20"
                        ToolTip="Charecter should be greater than 6 "></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNewPassword"
                        CssClass="redText" ErrorMessage="Please enter the new password"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="form-fields clearfix">
                <div class="fl txtrgt divsize1">
                    <asp:Label ID="lblConfirmPassword" runat="server" Text="Confirm Password:"></asp:Label>
                </div>
                <div class="fr txtlft divsize2">
                    <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" MaxLength="20"
                        ToolTip="Does not match new password "></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtNewPassword"
                        ControlToValidate="txtConfirmPassword" CssClass="redText" ErrorMessage="Password does not match"></asp:CompareValidator>
                </div>
            </div>
            <div class="form-fields clearfix">
                <div class="fr txtlft divsize2">
                    <asp:Button ID="btnChangePassword" runat="server" Text="ChangePassword" OnClick="btnChangePassword_Click"
                        CssClass="button greenButton medium" />
                </div>
            </div>
        </div>
    </asp:Panel>
</asp:Content>
